/**
 * @description: 钉钉授权登录参数校验
 * @version: 0.0.1
 * @author: z..
 * @Date: 2023-06-08 14:07:35
 */

import { Rule, RuleType } from '@midwayjs/validate';
import { requiredString } from "./common";

// 授权登录 code换取token
export class AuthDTO {
  @Rule(requiredString)
  authCode: string;
  @Rule(RuleType.string())
  state: string;
}

